<?php
include("../inc/global.inc");
include("../inc/fun.php");
include("../steps.php");
$p_rs=@mysql_query("select * from job_per where id='$_COOKIE[job_user_id]'");
$p_row=@mysql_fetch_array($p_rs);
if($_GET[edit]){
@mysql_query("update job_per set p_edittime='".date("Y-m-d H:i:s")."' where id='$_COOKIE[job_user_id]'");
echo "<script>location='index.php'</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简历中心-三帝招聘网</title>
<link href="../css/body.css" rel="stylesheet" type="text/css"/>
<link href="../css/link.css" rel="stylesheet" type="text/css"/>
<link href="css/head.css" rel="stylesheet" type="text/css"/>
<link href="css/main.css" rel="stylesheet" type="text/css"/>
<link href="../css/foot.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php include("../inc/top.php");?>
<div class="menuBox1">
<a href="/member/" class="hover">管理中心</a>
<a href="/member/show.php">我的简历</a>
<a href="/member/search_manage.php">我的搜索器</a>
<a href="/member/favorites.php">收藏夹</a>
<a href="/member/cqjob.php">发件夹</a>
<a href="/member/inbox.php">收件夹</a>
<div class="onl"></div>
</div>
<div id="mian">
<?php include("right.php");?>
<div id="box">
<div class="JobBox sideyellow backyellow">
  <div class="mian_Co">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td width="19%" align="center"><?php if($p_row[p_image]){?><img src="/upfile/<?=$p_row[p_image]?>" width="100" height="100" /><?php }else{?><img src="../images/photo.gif" width="100" height="100" /><?php }?><br />
<br />
<a href="upfile.php">更新头像</a></td>
        <td width="81%"><table width="100%" height="110" border="0" cellpadding="0" cellspacing="1" bgcolor="#EBEBEB">
  <tr>
    <td width="20%" height="25" align="right" bgcolor="#FFF5EC">用户名：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><?=$p_row[p_user]?>&nbsp;&nbsp;&nbsp;&nbsp;<a href="psw.php" style="color:#CC3300;">修改密码</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/exit.php" style="color:#CC3300;">注销登录</a></td>
    </tr>
  <tr>
    <td height="25" align="right" bgcolor="#FFF5EC">Email：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><?=$p_row[p_email]?></td>
  </tr>
  <tr>
    <td height="25" align="right" bgcolor="#FFF5EC">收件夹：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><a href="inbox.php" target="_blank"><font color="#FF0000">(<?php
	  $num=@mysql_result(@mysql_query("select count(id) from job_mailbox where to_id='$_COOKIE[job_user_id]' and to_del='1' and is_read='0'"),0);
	  echo $num;
	?>)</font>条未读</a></td>
  </tr>
  <tr>
    <td height="25" align="right" bgcolor="#FFF5EC">发件夹：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><a href="cqjob.php" target="_blank"><font color="#FF0000">(<?php
	  $num=@mysql_result(@mysql_query("select count(id) from job_mailbox where from_id='$_COOKIE[job_user_id]' and from_del='1' "),0);
	  echo $num;
	?>)</font>条</a></td>
  </tr>
  <tr>
    <td height="25" align="right" bgcolor="#FFF5EC">收藏夹：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><a href="favorites.php" target="_blank"><font color="#FF0000">(<?php
	  $num=@mysql_result(@mysql_query("select count(id) from job_favorites where member_id='$_COOKIE[job_user_id]'"),0);
	  echo $num;
	?>)</font>条信息</a></td>
  </tr>
  <tr>
    <td height="25" align="right" bgcolor="#FFF5EC">简历更新时间：<br /></td>
    <td height="20" bgcolor="#FFF5EC" style="padding-left:5px;"><?=date("Y-m-d",strtotime($p_row[p_edittime]))?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?edit=ok"><img src="../images/002.gif" width="77" height="21" border="0" align="absmiddle" /></a>&nbsp;&nbsp;<a href="/reg/index_2.php"><img src="../images/editjl.gif" width="78" height="21" border="0" align="absmiddle" /></a></td>
    </tr>
</table></td>
        </tr>
    </tbody>
  </table>
</div>
</div>
<div class="JobBox sideyellow backyellow">
  <div class="mian_Co">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
      <tbody>
        <tr>
          <td width="19%" align="center">&nbsp;</td>
          <td width="81%"><div class="txt1"> ● 请务必保持个人简历的准确、客观<br />
            ● 个人工作经历和联系方式如有变动，请及时在简历上修改<br />
            ●   如果你希望获取更多的面试机会，请将简历属性设置为“对所有公开”
          </div></td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
<div class="onl"></div>
<div class="title size14 topside6"><strong>我的简历</strong></div>
<div class="JobBox sideyellow backyellow">

<div class="mian_Co">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td align="center" width="10%" height="25"><b>简历</b></td>
        <td width="10%" align="center"><b>公开度</b></td>
        <td align="center" width="6%"><b>被浏览数</b></td>
        <td align="center" width="8%"><b>更新时间</b></td>     
        <td width="22%" align="center"><b>操作</b></td>
        </tr>
      <tr>
        <td align="center" height="25"><?=$p_row[p_name]?></td>
        <td align="center"><?=p_isopen($p_row[p_isopen])?></td>
        <td align="center"><?=$p_row[p_hit ]?></td>
        <td align="center"><?=date("Y-m-d",strtotime($p_row[p_edittime]))?></td>
        <td align="center"><a href="show.php">预览</a> <a href="index.php?edit=ok">更新</a> <a href="/reg/index_2.php">修改</a> <a href="/jobmail/" target="_blank">外发简历</a></td>
        </tr>
    </tbody>
  </table>
</div>
</div>
<div class="title size14 topside6"><strong>推荐职位</strong></div>
<div class="JobBox sideyellow backyellow">
<div class="mian_Co">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td align="center" width="22%" height="25"><b>职位名称</b></td>
        <td width="31%" align="center"><b>公司名称</b></td>
        <td align="center" width="17%"><b>工作城市</b></td>
        <td align="center" width="14%"><b>职位月薪</b></td>
        <td width="11%" align="center"><b>更新时间</b></td>
        <td width="5%" align="center">&nbsp;</td>     
        </tr>
		<?php $rs=@mysql_query("select job_post.id,job_post.member_id,job_post.job_title,job_post.job_addtime,job_post.job_salary,job_post.job_pro,job_post.job_city,job_post.job_dq,member.m_user,member.m_cname from job_post inner join member on (job_post.member_id=member.id) where job_sh='1' order by job_post.job_addtime desc,job_post.id desc limit 10");
		      while($row=@mysql_fetch_array($rs)){
		?>
      <tr>
        <td align="left" height="20"><a href="/jobpost/<?=$row['id']?>.cfm" target="_blank"><b><?=$row[job_title]?></b></a></td>
        <td height="20"><a href="/jobcom/<?=$row['m_user']?>/" target="_blank"><?=$row['m_cname']?></a></td>
        <td height="20" align="center"><?=$row[job_pro]?> <?=$row[job_city]?> <?=$row[job_dq]?></td>
        <td height="20" align="center"><?=job_salary($row[job_salary])?></td>
        <td height="20" align="center"><?=date("Y-m-d",strtotime($row[job_addtime]))?></td>
        <td height="20" align="center"><a href="/jobpost/<?=$row['id']?>.cfm" target="_blank" style="color:#0000FF"><strong>申请</strong></a></td>
        </tr>
		<?php }?>
    </tbody>
  </table>
</div>
</div>
<div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<?php include("../inc/foot.php"); ?>
</div>
</body>
</html>
